package mysql

import "gorm.io/gorm"

type Products struct {
	gorm.Model
	UserId       int64   `gorm:"type:int(50);not null; commit:'用户Id'"`
	Title        string  `gorm:"type:varchar(50);not null; commit:'标题'"`
	Price        float64 `gorm:"type:decimal(10,2);not null; commit:'价钱'"`
	BrowseNumber int64   `gorm:"type:int(50);not null; commit:'浏览量'"`
	Image        string  `gorm:"type:varchar(50);not null; commit:'图片'"`
	ClassId      int64   `gorm:"type:int(50);not null; commit:'分类id'"`
}
